import request from "@/utils/request";
// 登陆
export function login(data) {
  return request({
    url: "/pc/login/in",
    method: "post",
    data,
  });
}
// 退出登陆
export function logout(data) {
  return request({
    url: "/pc/login/out",
    method: "post",
    data,
  });
}
// 获取员工
export function getInfo(data) {
  return request({
    url: "/pc/user/get",
    method: "post",
    data,
  });
}
// 创建员工
export function createUser(data) {
  return request({
    url: "/pc/user/create",
    method: "post",
    data,
  });
}
// 获取员工分页数据
export function getUserByPagination(data) {
  return request({
    url: "/pc/user/get/pagination",
    method: "post",
    data,
  });
}
// 通过 uuid 编辑用户
export function editUserByUuid(data) {
  return request({
    url: "/pc/user/edit/uuid",
    method: "post",
    data,
  });
}
// 通过 uuid 删除用户
export function removeUserByUuid(data) {
  return request({
    url: "/pc/user/remove/uuid",
    method: "post",
    data,
  });
}

// 获取全部用户列表
export function getUserByAll() {
  return request({
    url: "/pc/user/get/all",
    method: "post",
  });
}
